Undestructible AI

 

Here is a useful script to make a unit undestructible (only CPU controlled units)

 

#start

unit1 setdamage 0

~0.1

goto "start";

 

The 0 is for reset the dammage or to heal the unit.

And in 0.1 seconds the unit will healed again.